package com.itany.corejava.day09;

import com.itany.corejava.day08.I;

import java.util.Arrays;

public class Test1 {

    public static void main(String[] args) {

        int seasonA=SeasonA.SUMMER;

        System.out.println(seasonA);

        System.out.println(f(seasonA));

        f(-543);


        SeasonB seasonB=SeasonB.SUMMER;

        System.out.println(seasonB);

        System.out.println(SeasonC.class);

        System.out.println(SeasonC.SUMMER);

        System.out.println(Arrays.toString(SeasonC.values()));

        System.out.println(SeasonC.SUMMER.getValue());

        System.out.println(SeasonC.SUMMER.name());

    }

    public static String f(int season){
        switch (season){
            case SeasonA.SPRING:
                return "春天";
            case SeasonA.SUMMER:
                return "夏天";
            case SeasonA.AUTUMN:
                return "秋天";
            case SeasonA.WINTER:
                return "冬天";
        }
        return null;
    }


}
